package com.zhike.common.model;

import java.io.Serializable;
import java.util.Date;

import org.springframework.format.annotation.DateTimeFormat;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@TableName(value = "zhike_group_members")
@AllArgsConstructor
@NoArgsConstructor
public class GroupMembers implements Serializable {
    @TableId(value = "userRecordId", type = IdType.AUTO)

    private Integer userRecordId;

    private Integer userUid;

    private String gId;

    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")

    private Date joinTime;

    private Integer beInviteUserId;

    private String isAdmin;

    private Boolean redIsDisable;

    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date beOwnerTime;

    private String nicknameIngroup;

    private Long msgTimeStart;

    private Long msgTimeEnd;

    private Integer prohibitMsg;
}
